package com.cuit.service;

import com.cuit.dao.D_OrderDao;
import com.cuit.pojo.DoctorOrder;

public class D_OrderService {
    DoctorOrder or=new DoctorOrder();

    public D_OrderService(){}
    public D_OrderService(DoctorOrder or){
        this.or=or;
    }

    public void uptaM(){
        D_OrderDao dd=new D_OrderDao();
        dd.uptaM(or);
    }
    public void uptaS(String f){
        D_OrderDao dd=new D_OrderDao();
        if(f.equals("是")){
            dd.uptaS(or);
        }else{
            dd.deS(or);
        }
    }
    public String[][] getTimes(int id){
        D_OrderDao dd=new D_OrderDao();
        return dd.getTime(id);
    }
    public int[] getmaxs(int id){
        D_OrderDao dd=new D_OrderDao();
        return dd.getMax(id);
    }
}
